import { createApp } from 'vue'
import { createPinia } from 'pinia'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import './style.css'
import App from './App.vue'

const app = createApp(App); 

app.use(router)
   .use(createPinia())
   .use(ElementPlus)
   .mount('#app')

//自定义指令基本用法： app.directive('focus',function(el){el.focus();})

//挂载全局变量
/**
 *  挂载全局变量cookie
 *  app.config.globalProperties.$test = "测试文本";
 *  import { getCurrentInstance } from 'vue'
 *  let {proxy}:any = getCurrentInstance()
 *  console.log(proxy.$test);
 */


